<extend name="Base/common"/>
<!--<script type="text/javascript" src="/SG_Shopwechat/Public/Home/js/iscroll.js"></script>-->
<block name="TITLE"><title>采购申请</title></block>
<block name="body" >
    <div ng-controller="CaigouCtrl" ng-init="detail_init('{$id}')">
        <form action="{:U('newproduct')}" method="post">
            <table class="am-table">
                <tr>
                    <td><span>商品名称</span></td>
                    <td>
                        <input type="text" class="am-hide" name="id" ng-model="product.id"/>
                        <input class="am-form-field am-radius" name="pname"  type="text" ng-model="product.pname" required/>
                    </td>
                </tr>
                <tr>
                    <td><span>规格</span></td>
                    <td>
                        <input class="am-form-field am-radius" name="spec"  type="text" ng-model="product.spec"  required/>
                    </td>
                </tr>
                <tr>
                    <td><span>箱数</span></td>
                    <td>
                        <input class="am-form-field am-radius" name="total_num"  type="text" ng-model="product.total_num"  required/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>总重</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="total_weight" ng-model="product.total_weight"   />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>每箱价格</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="unit_num_price" ng-model="product.unit_num_price"    />
                    </td>
                </tr>

                <tr>
                    <td>
                        <span>每斤单价</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="unit_weight_price" ng-model="product.unit_weight_price"  />
                    </td>
                </tr>
                <!--<tr>-->
                    <!--<td>-->
                        <!--<span>总箱费</span>-->
                    <!--</td>-->
                    <!--<td>-->
                        <!--<input class="am-form-field am-radius" name="total_box_fee" ng-model="product.total_box_fee"  type="number" />-->
                    <!--</td>-->
                <!--</tr>-->
                <tr>
                    <td>
                        <span>单箱箱费</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="unit_box_fee" ng-model="product.unit_box_fee"   />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>单箱皮重</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="unit_box_weight" ng-model="product.unit_box_weight"   />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>产地</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="chandi" ng-model="product.chandi"  type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>预估存放时间</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="have_days" ng-model="product.have_days"  />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span>备注</span>
                    </td>
                    <td>
                        <input class="am-form-field am-radius" name="remark" ng-model="product.remark" type="text" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <span ng-click="submit()" class="am-btn am-btn-primary am-radius" style="width: 80%">确认提交</span>
                        <button type="submit" id="submit" class="am-hide">提交</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</block>
<block name="script">

    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript"></script>
</block>
